package cn.ithers.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table ( name ="tb_daily_view_count" )
public class DailyViewCount implements Serializable {

	@ApiModelProperty(value = "日浏览统计ID")
  	@Id
	private String id;

	@ApiModelProperty(value = "日浏览量")
  	@Column(name = "view_count" )
	private long viewCount;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "create_time" )
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "update_time" )
	private Date updateTime;



}
